{% extends 'mpa/common/base.html' %}
{% load static %}

{% block content %}
        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="btn-group pull-right">
                            <button type="button" class="btn btn-primary dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                            </ul>
                        </div>
                        <h4 class="page-title">Sweet-Alert </h4>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"> Sweet-Alert Examples </h3>
                    </div>
                    <div class="panel-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th style="width:50%">Alert Type</th>
                                    <th>Example</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td class="middle-align">Basic Example</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-basic">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">A title with a text under</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-title">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">A success message!</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-success">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">A warning message, with a function attached to the "Confirm"-button...</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-warning">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">By passing a parameter, you can execute something else for "Cancel".</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-params">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">A message with custom Image Header</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-image">Click me</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="middle-align">A message with auto close timer</td>
                                    <td>
                                        <button class="btn btn-info waves-effect waves-light btn-sm" id="sa-close">Click me</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- end container -->
        </div>

{% endblock %}

{% block static %}
    <script src="{% static 'mpa/plugins/sweetalert/dist/sweetalert.min.js' %}"></script>
    <script src="{% static 'mpa/pages/jquery.sweet-alert.init.js' %}"></script>
{% endblock %}